package org.cunamas.core.dto.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import javax.faces.model.SelectItem;

import org.springframework.jdbc.core.RowMapper;

public class SelectItemMapper implements RowMapper{

	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		SelectItem  selectItem = new SelectItem();
		selectItem.setLabel(rs.getString(2));
		selectItem.setValue(rs.getString(1));
		return selectItem;
	}

}
